# Contributor: Eivind Uggedal <eu@eju.no>
# Maintainer: Eivind Uggedal <eu@eju.no>
pkgname=light
pkgver=1.2.2
pkgrel=0
pkgdesc="Control backlights and other hardware lights"
url="http://haikarainen.github.io/light/"
arch="all"
license="GPL-3.0-or-later"
options="!check"  # no test suite
makedepends="autoconf automake"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/haikarainen/light/archive/v$pkgver.tar.gz"

prepare() {
	default_prepare
	autoreconf -fi
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--with-udev=/lib/udev/rules.d
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="5815394fb1545d1e06234c261d475e1836e4c43e47e7707b8628891d20b70db04f1661b78ca1d236d549c734430b606498fa46de060c854791b13cf49de07b59  light-1.2.2.tar.gz"
